package com.mjlf.mjatis.test.mapper;

import com.mjlf.mjatis.annotation.Param;
import com.mjlf.mjatis.test.entity.User;

import java.util.List;

/**
 * @ClassName UserDao
 * @Author mjlft
 * @Date 2020/6/10 23:41
 * @Version 1.0
 * @Description TODO
 */
public interface UserDao {

    int save(User user);

    int update(User user);

    User getUser(@Param("id") int id);
    List<User> getAll();
}
